<%-- 
    Document   : xmlchat
    Created on : Apr 11, 2011, 12:55:02 PM
    Author     : Muhammad Anis
--%><%@page import="java.util.List"%><?xml version="1.0" encoding="ISO-8859-1"?>
    <jsp:useBean id="chatbeetwenfriend" class="system.chatbetweenfriend" scope="application" />
    <%@page import="user.user"%><%@ page contentType="text/xml;charset=ISO-8859-1" %><root>
    <%
    user currentuser = (user)session.getAttribute("currentuser");
    List<String> hasil =  currentuser.isUpdateFriend(chatbeetwenfriend.getFriendChatWith(currentuser.username));
    if(hasil.isEmpty()){}else{
    for(String ret : hasil){%>
    <chatfriend><%out.print(ret);%></chatfriend><%}
    session.setAttribute("currentuser", currentuser);
    }
    %>
</root>

